package org.itt;

import org.apache.log4j.PropertyConfigurator;
import org.itt.cf.gdc.GdCSourceFactory;
import org.itt.cf.pec.PECSourceFactory;
import org.itt.cf.signeddoc.SignedDocSourceFactory;

public class Launcher {
        public static void main(String[] args) {
                PropertyConfigurator.configure("log4j.properties");
               
                Client client = new Client();

                switch (Properties.get().CSV_TYPE) {
                case "GdC":
                        client.selectSource(new GdCSourceFactory());
                        break;

                case "SignedDoc":
                        client.selectSource(new SignedDocSourceFactory());
                        break;

                case "PEC":
                        client.selectSource(new PECSourceFactory());
                        break;

                default:
                        System.exit(0);
                }

                client.runCSost();
        }
}
